import request from '@/utils/request'

// 查询技术需求列表
export function listTechreq(query) {
  return request({
    url: '/tcsp/techreq/list',
    method: 'get',
    params: query
  })
}

// 查询技术需求详细
export function getTechreq(techReqId) {
  return request({
    url: '/tcsp/techreq/' + techReqId,
    method: 'get'
  })
}

// 新增技术需求
export function addTechreq(data) {
  return request({
    url: '/tcsp/techreq',
    method: 'post',
    data: data
  })
}

// 修改技术需求
export function updateTechreq(data) {
  return request({
    url: '/tcsp/techreq',
    method: 'put',
    data: data
  })
}

// 删除技术需求
export function delTechreq(techReqId) {
  return request({
    url: '/tcsp/techreq/' + techReqId,
    method: 'delete'
  })
}
